//Fri Sep 16 16:43:08 CDT 2011
import java.util.*;
import java.util.regex.*;
import java.text.*;
import java.math.*;
import java.awt.geom.*;

public class SalaryCalculator
{
	public double calcHours(int P1, int P2, int salary)
	{
		if(P1 * 200 >= salary) return 1.0 * salary / P1;
		return 200.0 + (1.0 * salary - P1 * 200) / P2;
	}
	
	
}
//Powered by [KawigiEdit] 2.0!
